.department-detail-container {
  width: 100%;
  min-height: 100vh;
  background: #F2F2F6;
  overflow-x: hidden;
}

// 顶部导航区域背景
.header-wrapper {
  width: 750px;
  height: 284px;
  background: #3F99F9;
  border-radius: 0px 0px 0px 0px;
  position: relative;
  margin: 0 auto;
}

// 顶部导航
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 40px 20px 20px;
  background: transparent;
  position: relative;

  .back-icon {
    width: 60px;
    height: 60px;
    font-size: 60px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 324px;
    height: 54px;
    font-family: 'Source Han Sans CN', 'Source Han Sans CN';
    font-weight: 500;
    font-size: 36px;
    color: #FFFFFF;
    text-align: center;
    font-style: normal;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search-icon {
    width: 60px;
    height: 60px;
    font-size: 60px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

// 搜索框
.search-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 670px;
  height: 70px;
  background: #FFFFFF;
  border-radius: 10px 10px 10px 10px;
  // padding: 0 20px;
  // padding-left: 40px;
  // padding-right: 40px;
  display: flex;
  align-items: center;

  :deep(.van-search) {
    padding: 0;
    background: transparent;
    width: 100%;
    height: 100%;

    .van-search__content {
      background: transparent;
      border: none;
      border-radius: 0;
      height: 100%;
      display: flex;
      align-items: center;
      padding: 24px 0 23px 36px;

      // 解决不同分辨率下文字显示问题
      .van-cell--borderless {
        height: auto;
      }

      .van-search__field {
        height: auto;
      }

      .van-field__control {
        font-family: 'Source Han Sans CN', 'Source Han Sans CN';
        font-weight: 500;
        font-size: 28px;
        color: #333;
        text-align: left;
        font-style: normal;
        text-transform: none;
        background: transparent;
        border: none;
        height: auto;

        &::placeholder {
          font-family: 'Source Han Sans CN', 'Source Han Sans CN';
          font-weight: 500;
          font-size: 28px;
          color: #97999C;
          text-align: left;
          font-style: normal;
          text-transform: none;
        }
      }
    }

    .van-search__action {
      display: none;
    }

    .van-field__left-icon {
      width: 23px;
      height: 23px;
      background: transparent;
      border-radius: 0;
      margin-right: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;

      .van-icon {
        font-size: 28px;
        color: #97999C;
      }
    }
  }
}

// 面包屑导航
.breadcrumb {
  display: flex;
  align-items: center;
  // padding: 15px 20px;
  padding-left: 40px;
  padding-top: 15px;
  padding-bottom: 22px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.05);
  font-size: 30px;
  font-weight: 500;
  color: #9999;
  margin-bottom: 20px;
  .breadcrumb-item {
    &.clickable {
      cursor: pointer;
      color: #2D67B0;
      transition: color 0.2s;

      transition: color 0.15s ease;
      
      &:hover {
        color: #1a4d8a;
      }

      &:active {
        color: #0f3a6b;
      }
    }

    &.current {
      // width: 150px;
      height: 45px;
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 500;
      font-size: 30px;
      color: #2D67B0;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }
  }

  .breadcrumb-arrow {
    font-size: 38px;
    // color: #999;
    margin: 0 8px;
  }
}

// 成员列表
.member-list {
  background: #fff;
  box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.05);
  // margin-top: 20px;
}

// 成员项
.member-item {
  display: flex;
  align-items: center;

  padding: 21px 30px 0 40px;
  cursor: pointer;
  &:active {
    background-color: #f5f5f5;
  }

  // &:first-child{
  //   padding:21px 30px 35px 40px;
  // }

  .member-avatar {
    width: 76px;
    height: 76px;
    // background: #CCECFF;
    border-radius: 20px;
    margin-right: 17px;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 20px;
    }
  }

  .member-info {
    flex: 1;

    .member-name {
      display: flex;
      align-items: center;
      // font-family: 'Source Han Sans CN';
      // font-weight: 500;
      // font-size: 16px;
      // color: #333;
      // margin-bottom: 4px;
      // line-height: 22px;

      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 400;
      font-size: 32px;
      color: #333333;
      letter-spacing: 1px;
      text-align: left;
      font-style: normal;
      text-transform: none;
      padding-bottom: 6px;

      .manager-tag {
        color: #3FC43A;
        font-size: 20px;
        padding: 4px 8px;
        border-radius: 6px 6px 6px 6px;
        border: 1px solid #3FC43A;
        // border-radius: 10px;
        margin-left: 12px;
        font-weight: 400;
      }
    }

    .member-position {
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 400;
      font-size: 22px;
      color: #999999;
      letter-spacing: 1px;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }
  }

  .edit-icon {
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    
    &.disabled {
      opacity: 0.3;
      cursor: not-allowed;
      pointer-events: none;
    }
  }
}

// 未设置主管提示
.no-manager-tip {
  display: flex;
  align-items: center;
  // padding: 20px;
  margin: 20px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  border-radius: 20px;

  &:active {
    background-color: #f5f5f5;
  }

  .tip-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    // margin-right: 15px;
    margin: 36px 17px 37px 20px;

    .tip-icon-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .tip-text {
    flex: 1;

    .tip-title {
      width: 269px;
      height: 48px;
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 500;
      font-size: 32px;
      color: #333333;
      letter-spacing: 1px;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }

    .tip-desc {
      width: 519px;
      height: 35px;
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 400;
      font-size: 24px;
      color: #666666;
      letter-spacing: 1px;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }
  }

  .arrow-icon {
    font-size: 38px;
    color: #999;
    margin-right: 10px;
  }
}

// 底部操作按钮
.bottom-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 0;
  box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.05);
  .action-buttons {
    display: flex;

    .action-btn {
      flex: 1;
      height: 83px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background-color 0.2s;
      position: relative;

      &:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 40px;
        background-color: #E0E0E0;
      }

      &:active {
        background-color: #f5f5f5;
      }

      span {
        font-family: 'PingFang SC';
        font-weight: bold;
        font-size: 28px;
        color: #2D67B0;
        text-align: center;
      }
    }
  }
}

// 为底部按钮预留空间
.member-list {
  padding-bottom: 20px;
}

// 加载状态样式
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  font-size: 28px;
  color: #666;
}

// 空状态样式
.empty-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  font-size: 28px;
  color: #666;
  
  .empty-image {
    width: 355px;
    height: 355px;
    object-fit: contain;
  }
}